package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName t_book
 */
@TableName(value ="t_book")
@Data
public class Book implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Integer typeId;

    /**
     * 
     */
    private String publisher;

    /**
     * 
     */
    private Date publicationDate;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    private Double price;

    /**
     * 
     */
    private String detail;

    /**
     * 
     */
    private String imgSrc;

    /**
     * 
     */
    private Integer collectionCount;

    /**
     * 
     */
    private Integer storeCount;

    /**
     * 
     */
    private Integer buyCount;

    /**
     * 点击量
     */
    private Integer readCount;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer state;

    @Version
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}